import time
import unittest
from pythonProject3.tool.HTMLTestRunner import HTMLTestRunner
from pythonProject3.scripts.Ihrmtest_params import Test_IHRM
from pythonProject3.scripts.ihrm_addemp import emp
suite=unittest.TestSuite()

suite.addTest(unittest.makeSuite(Test_IHRM))

suite.addTest(unittest.makeSuite(emp))

# file="C:/Users/lenovo/PycharmProjects/pythonProject3/report/report-{}.html".format(time.strftime("%y%m%d"))
file="H:\\pythonProject3\\pythonProject3\\report\\report-{}.html".format(time.strftime("%y%m%d"))

with open(file,"wb") as f:
    runner=HTMLTestRunner(f,title="ihrm测试报告")
    runner.run(suite)